﻿<?php
$this->lang->load('template');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0042)http://www.fav365.com/ball/?m=admin&c=good -->
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf8">
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
<LINK href="/css/admin.css" 
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
<script src="/js/global.js" type="text/javascript"></script>
</HEAD>
<BODY>
<DIV class=admin_box>
  <DIV class=admin_boxtop></DIV>
  <DIV class=admin_boxmain>
    <TABLE cellSpacing=1 cellPadding=0 width="96%" align=center border=0>
      <TBODY>
        <TR>
          <TD><H1 class=title>
              <?php echo $this->lang->line('tpl_userlist')?>
            </H1></TD>
        </TR>
      </TBODY>
    </TABLE>
    <?php

$data = array(
	'action' => '/index.php/users/admin',
	'sortfiled' => array('id'=>$this->lang->line('tpl_userid'),'username'=>$this->lang->line('tpl_username')),
	'sfield'	=> array('id'=>$this->lang->line('tpl_userid'),'username'=>$this->lang->line('tpl_username'),'truename'=>$this->lang->line('tpl_truename')),//搜索条件
	'options' => array(
			'is_locked' => array('-100'=>$this->lang->line('tpl_islocked'),'1'=>$this->lang->line('tpl_yes'),'0'=>$this->lang->line('tpl_no')),
		),
	'others' => '',
);
$this->load->view('admin/_searchbar',$data);
?>
    <FORM id=postform name=postform method=post onSubmit="return checks();">
      <TABLE class=table cellSpacing=1 cellPadding=5 width="96%" align=center border=0 id="checkList">
        <TBODY>
          <TR>
            <TD class=tdbg width="5%"><?php echo $this->lang->line('tpl_selected')?></TD>
            <TD class=tdbg width="15%"><DIV align=center><STRONG>
                <?php echo $this->lang->line('tpl_username')?>
                </STRONG></DIV></TD>
            <TD class=tdbg width="20%"><DIV class=STYLE1 align=center>
                <DIV align=center>
                  <?php echo $this->lang->line('tpl_truename')?>
                </DIV>
              </DIV></TD>
            <TD class=tdbg width="14%"><DIV class=STYLE3 align=center>
                <DIV align=center>
                  <?php echo $this->lang->line('tpl_email')?>
                </DIV>
              </DIV></TD>
            <TD class=tdbg width="14%"><DIV class=STYLE1 align=center>
                <DIV align=center>
                  <?php echo $this->lang->line('tpl_islocked')?>
                </DIV>
              </DIV></TD>
            <TD class=tdbg width="19%"><DIV align=center><STRONG>
                <?php echo $this->lang->line('tpl_actions')?>
                </STRONG></DIV></TD>
          </TR>
          <?php
		  $users = $rs['resultset'];
		  foreach($users as $key=>$val):
		  ?>
          <TR class=tr2 align=middle>
            <TD width="5%"><INPUT type=checkbox value=<?php echo $val['id']?> name=id[] onClick="sets(this)"></TD>
            <TD width="15%" class="userList"><?php echo $val['username']?></TD>
            <TD width="20%"><?php echo $val['truename']?></TD>
            <TD><?php echo $val['email']?></TD>
            <TD><?php if ($val['is_locked']):?>
              <?php echo $this->lang->line('tpl_yes')?>
              <?php else:?>
              <?php echo $this->lang->line('tpl_no')?>
              <?php endif;?>
            </TD>
            <TD>	
			<A href="<?php echo site_url(array('users','edit',$val['id']));?>">
              <?php echo $this->lang->line('tpl_act_edit')?>
              </A>
			  </TD>
          </TR>
          <?php
		  endforeach;
		  ?>
          <TR class=tr_fff>
            <TD align=left colSpan=6><?php if(isset($rs['pager'])){ echo '<span class="msdn">'.$rs['pager']->create_links().'</span>';}?>
              <!--<INPUT class=btn onClick="CheckAll('checkList',true)" type=button value="<?php echo $this->lang->line('tpl_selectall')?>">
              <INPUT class=btn onClick="CheckAll('checkList',false)" type=button value="<?php echo $this->lang->line('tpl_cancel')?>">-->
              <INPUT class=btn onClick="window.location.href='<?php echo site_url('users/add')?>'" type=button value="<?php echo $this->lang->line('tpl_act_add')?>">
              <INPUT 
      id=h_delid type=hidden name=h_delid>
            </TD>
          </TR>
        </TBODY>
      </TABLE>
    </FORM>
  </DIV>
  <DIV class=admin_boxbottom> </DIV>
</DIV>
</BODY>
</HTML>
